<div class="title">
  <h1>Editing unit</h1>
</div>

<div class="content">
  <% form_for(@unit) do |f| %>
    <%= f.error_messages %>
    <table>
      <tr>
        <td class="description"><%= f.label :name %></td>
        <td id="name"><%= f.text_field :name %></td>
      </tr>
      <tr>
        <td class="description"><%= f.label :angriff %></td>
        <td id="number"><%= f.text_field :angriff %></td>
      </tr>
      <tr>
        <td class="description"><%= f.label :verteidigung %></td>
        <td id="number"><%= f.text_field :verteidigung %></td>
      </tr>
      <tr>
        <td class="description"><%= f.label :leben %></td>
        <td id="number"><%= f.text_field :leben %></td>
      </tr>
      <tr>
        <td class="description"><%= f.label :geschwindigkeit %></td>
        <td id="number"><%= f.text_field :geschwindigkeit %></td>
      </tr>
      <tr>
        <td class="description"><%= f.label :punkte %></td>
        <td id="number"><%= f.text_field :punkte %></td>
      </tr>
      <tr>
        <td class="description"><%= f.label :essenzen %></td>
        <td id="number"><%= f.text_field :essenzen %></td>
      </tr>
      <tr>
        <td class="description"><%= f.label :kristalle %></td>
        <td id="number"><%= f.text_field :kristalle %></td>
      </tr>
      <tr>
        <td class="description"><%= f.label :kraftsteine %></td>
        <td id="number"><%= f.text_field :kraftsteine %></td>
      </tr>
      <tr>
        <td class="description"><%= f.label :goldharz %></td>
        <td id="number"><%= f.text_field :goldharz %></td>
      </tr>
      <tr>
        <td class="description"><%= f.label 'Wächtereinheit' %></td>
        <td id="number"><%= f.check_box :waechtereinheit %></td>
      </tr>
    </table>
    <br />
    <%= f.submit "Update" %>
  <% end %>
</div>

<% content_for :navigation do %>
  <li>
    <%= link_to 'Show', @unit %>
  </li>
<% end %>